{% extends "enterprise/base.html" %}
{% block css %}
{% endblock %}
{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_0";
                var sub_menu = "menu_0_3";
            </script>
            <div class="col-md-12">
                <form method="post" enctype="multipart/form-data" action="/basic/law/submitClean/" class="formSubmit">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <div class="panel-title"><h3>三、清洁生产审核情况（附相关证明文件）</h3></div>
                            <div class="panel-options">
                                <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                                <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                            </div>
                        </div>
                        <div class="panel-body with-table">

                                <table class="input_in table-detail">
                                    <tr>
                                        <th width="25%">是否属于强制清洁生产审核单位</th>
                                        <td width="25%">
                                            {% if clean.enforcement == '1' %}
                                            <input type="radio" name="enforcement" value="1" checked="checked">
                                            是 &nbsp;&nbsp;&nbsp;&nbsp;
                                            <input type="radio" name="enforcement" value="0">
                                            否
                                            {% else %}
                                                <input type="radio" name="enforcement" value="1" >
                                                是 &nbsp;&nbsp;&nbsp;&nbsp;
                                                <input type="radio" name="enforcement" value="0" checked="checked">
                                                否
                                            {% endif %}
                                        </td>
                                        <th width="25%">清洁生产审核开展情况</th>
                                        <td width="25%">
                                           {% if clean.launch == '1' %}
                                            <input type="radio" name="launch" value="1" checked="checked">
                                            开展 &nbsp;&nbsp;&nbsp;&nbsp;
                                            <input type="radio" name="launch" value="0">
                                            未开展
                                            {% else %}
                                               <input type="radio" name="launch" value="1">
                                               开展 &nbsp;&nbsp;&nbsp;&nbsp;
                                               <input type="radio" name="launch" value="0" checked="checked">
                                               未开展
                                            {% endif %}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>清洁生产审核评估情况</th>
                                        <td>
                                            {% if clean.evaluation == '1' %}
                                            <input type="radio" name="evaluation" value="1" checked="checked">
                                            已评估&nbsp;&nbsp;&nbsp;&nbsp;
                                            <input type="radio" name="evaluation" value="0">
                                            未评估
                                            {% else %}
                                                <input type="radio" name="evaluation" value="1" >
                                                已评估&nbsp;&nbsp;&nbsp;&nbsp;
                                                <input type="radio" name="evaluation" value="0" checked="checked" >
                                                未评估
                                            {% endif %}
                                        </td>
                                        <th>清洁生产审核验收情况</th>
                                        <td>
                                            {% if clean.acceptance == '1' %}
                                            <input type="radio" name="acceptance" value="1" checked="checked">
                                            已验收&nbsp;&nbsp;&nbsp;&nbsp;
                                            <input type="radio" name="acceptance" value="0">
                                            未验收
                                            {% else %}
                                                <input type="radio" name="acceptance" value="1">
                                                已验收&nbsp;&nbsp;&nbsp;&nbsp;
                                                <input type="radio" name="acceptance" value="0" checked="checked">
                                                未验收
                                            {% endif %}
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>最近一次清洁生产审核评估或验收时间</th>
                                        <td>
                                            <input class="Wdate time" type="text"  name="most_recently" value="{{ clean.most_recently}}"  onfocus="WdatePicker({dateFmt:'yyyy-MM'})" />
                                        </td>
                                        <th>清洁生产审核评估或验收部门</th>
                                        <td><input type="text" datatype="*" name="department" placeholder="请输入" value="{{ clean.department}}"></td>
                                    </tr>
                                    <tr>
                                        <th>附相关证明文件</th>
                                        <td colspan="3">  
                                            <table>
                                                    {% if law_files %}
                                                        {% for file in law_files %}
                                                            <tr>
                                                                <td width=300><input style="width:200px;" type="text" value="{{file.file_name}}" name="oldfile">
                                                                    <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file" placeholder="请输入" value=""></td>
                                                                {%if forloop.counter == 1%}
                                                                    <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                                {% else %}
                                                                    <td width=60><input type="button" value="删除" class="btn btn-danger" onclick="delFile(this)"></td>
                                                                {% endif %}
                                                            </tr>
                                                        {% endfor %}
                                                    {% else %}
                                                        <tr>
                                                            <td width=300><input style="width:200px;" type="text" value="{{file.upload_file}}"> <button type="button" onclick="choseFile(this)">选择</button><input style="display:none;" type="file" name="file" placeholder="请输入" value=""></td>
                                                            <td width=60><input type="button" value="添加" class="btn btn-success" onclick="addFile(this)"></td>
                                                        </tr>
                                                    {% endif %}
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>备注</th>
                                        <td colspan="3">
                                            <textarea name="remark"  placeholder="请输入" style="resize:no;">{{ clean.remark }}</textarea></td>
                                    </tr>
                                </table>
                        </div>
                    </div>
                    <div class="buttons">
                        <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存">
                                <input type="submit" class="btn btn-success btn-lg" value="确认">
                        <!-- <input class="btn btn-info btn-lg" type="reset" value="重置"/> -->
                    </div>
                </form>
            </div>

{% endblock %}
{% block js %}
{% endblock %}